package ai.people.netmon.framework.domain.userconfig.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * （监测系统）用户配置采集账号表
 * </p>
 *
 * @author zhenglin
 * @since 2022-02-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
public class UserCollectConfigAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 用户添加账号信息
     */

    private String account;
    /**
     * 信源类别
     */
    @NotBlank(message = "infoType不能为空")
    private String infoType;

    /**
     * 采集状态
     */
    private String collectionStatus;

    /**
     * 采集频次(预留)
     */
    private String crawlInterval;

    /**
     * 创建用户唯一标识
     */
    private String userId;

    /**
     * 配置来源（monitor、warning）
     */
    private String appName;

    /**
     * 合作伙伴ID，页面调用时传入
     */
    private String partnerId;

    /**
     * 账户链接
     */
    @NotBlank(message = "accountLink不能为空")
    private String accountLink;

}
